class UserTaskDetailBean {
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  UserTaskDetailBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  UserTaskDetailBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  String realName;
  String userName;
  var checkNumber;
  var checkMileage;
  var checkQuestionNumber;

  Result(
      {this.realName,
        this.userName,
        this.checkNumber,
        this.checkMileage,
        this.checkQuestionNumber});

  Result.fromJson(Map<String, dynamic> json) {
    realName = json['realName'];
    userName = json['userName'];
    checkNumber = json['checkNumber'];
    checkMileage = json['checkMileage'];
    checkQuestionNumber = json['checkQuestionNumber'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['realName'] = this.realName;
    data['userName'] = this.userName;
    data['checkNumber'] = this.checkNumber;
    data['checkMileage'] = this.checkMileage;
    data['checkQuestionNumber'] = this.checkQuestionNumber;
    return data;
  }
}
